package cn.christ.com.mobilesafe.view.activity_process.dagger2;

import android.content.Context;

import cn.christ.com.mobilesafe.view.activity_process.presenter.ProcessManagerPresenter;
import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2018/7/25.
 */

@Module
public class ProcessManagerModule {
    private Context context;

    public ProcessManagerModule(Context context) {
        this.context = context;
    }

    @Provides
    public Context provideContext() {
        return context;
    }

    @Provides
    public ProcessManagerPresenter providePresenter() {
        return new ProcessManagerPresenter(context);
    }
}
